#!/bin/bash

echo "//****Ejecutando destroy de $1****\\\\"

for line in $(cat "$1.conf"); do 
	echo "-ejecutando $line"
	case $line in
		"ADP") 
			lanzar="../out/terminator_adp"
			break;;
		"ADPT") 
			lanzar="../out/terminator_adpt"
			break;;
		"AGV") 
			lanzar="../out/terminator_agv"
			break;;
		"DESPACHO") 
			lanzar="../out/terminator_despacho"
			break;;
		"ROBOT11") 
			lanzar="../out/terminator_robot11"
			break;;
		"ROBOT14") 
			lanzar="../out/terminator_robot14"
			break;;
		"ROBOT16") 
			lanzar="../out/terminator_robot16"
			break;;
		"ROBOT5") 
			lanzar="../out/terminator_robot5"
			break;;
		"ROBOT12") 
			lanzar="../out/terminator_robot12"
			break;;
	esac

	cmd="$cmd$lanzar;"
done
